package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.bizimpl.upmp.domain.FeeInfo;
import cc.rengu.redp.bizimpl.upmp.vo.OperationResult;
import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.common.exception.RedpException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.poi.ss.usermodel.Row;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
* @author 刘玉亮.LL
*/
    public interface IFeeInfoService extends IService<FeeInfo> {

    IPage<FeeInfo> findByPage(QueryRequest request, FeeInfo info);

    List<FeeInfo> findcd(String feecd, String instId);

    List<FeeInfo> findallBypCalType(String feecd, String instId);

    // 查询费率信息（code-name），重复算一条
    @SuppressWarnings("rawtypes")
    Map<String, Object> feeInfoRSelect2List(QueryRequest request, String q);

    void saveFeeInfos(Row row);

    OperationResult saveData(String optFlag, String oprMenuId, String oprMenuName, List<FeeInfo> feeInfoList, HttpServletRequest request, String webNextUrl) throws RedpException;
}
